import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'ios_camera_permission_method_channel.dart';

abstract class IosCameraPermissionPlatform extends PlatformInterface {
  /// Constructs a IosCameraPermissionPlatform.
  IosCameraPermissionPlatform() : super(token: _token);

  static final Object _token = Object();

  static IosCameraPermissionPlatform _instance = MethodChannelIosCameraPermission();

  /// The default instance of [IosCameraPermissionPlatform] to use.
  ///
  /// Defaults to [MethodChannelIosCameraPermission].
  static IosCameraPermissionPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [IosCameraPermissionPlatform] when
  /// they register themselves.
  static set instance(IosCameraPermissionPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<int> getCameraPermission() {
    throw UnimplementedError(
        'getCameraPermission() has not been implemented.');
  }

  Future<bool> requestCameraPermission() {
    throw UnimplementedError(
        'requestCameraPermission() has not been implemented.');
  }
}
